﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using CqusInfo.DAL.Permissions;

namespace CqusInfo.BLL.Permissions
{
    public class RoleBLL:Inteface.IRoleBLL
    {
        private static readonly RoleDAL rDal = new RoleDAL();
        public Int32 GetCounts(bool isDel)
        {
            return rDal.GetCounts(isDel);
        }

        public Int32 Add(RAL.Permissions.RoleModel model)
        {
            return rDal.Add(model);
        }

        public Int32 Update(string rId, RAL.Permissions.RoleModel model)
        {
            return rDal.Update(rId, model);
        }

        public Int32 Delete(string rId, bool isDel, bool trueDel)
        {
            return rDal.Delete(rId, isDel, trueDel);
        }

        public List<RAL.Permissions.RoleModel> Query(string rId)
        {
            return rDal.Query(rId);
        }

        public List<RAL.Permissions.RoleModel> Query(Int32 page, Int32 takeItem, bool isDel)
        {
            return rDal.Query(page, takeItem, isDel);
        }
    }
}
